package util.libraries;

import java.io.File;

public abstract class MapToFileLibrary extends FileLibrary
{

    public MapToFileLibrary (File dir)
    {
        super(dir);
    }

    public MapToFileLibrary (String dir)
    {
        super(dir);
    }

    @Override
    public void addToLibrary (Object add)
    {
        super.addToLibrary(add);
        addMappingElement((File)add);
    }

    abstract protected void addMappingElement (File add);
    
    abstract protected Object getMapElementByKey(Object key);
    
    abstract protected Object getMapElementByIndex(Integer index);


}
